<DOCTYPE html>
<html>
<head>
    <title>聚惠家</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php foreach ($this->config->item('style_css_paths') as $css): ?>
      <link rel="stylesheet" href=<?php echo $css ?> />
    <?php endforeach ?>
    <?php foreach ($this->config->item('style_js_paths') as $js): ?>
      <script type="text/javascript" src=<?php echo $js?> ></script>
    <?php endforeach ?>
    <script type="text/javascript" src=<?php echo base_url("/scripts/logic/uihelper.js") ;?>></script>
</head>
 
<body>
    <div data-role="page" id="general_pay" data-dialog="true" > 
        <div data-role="header"  data-theme="b">
            <h1>账单记录</h1>
        </div> 

        <div role="main" class="ui-content">
 
            <div class="ui-corner-all custom-corners">
              <div class="ui-bar ui-bar-a">
                <h3>账单</h3>
              </div>
              <div class="ui-body ui-body-a" id="gen_bill">
              </div>
            </div>

            <form method="post" action="<?php echo site_url('welcome/newbill?userid=') . $user_id;?>" id = "general_pay_form">
              <div data-role="fieldcontain">
                <label for="fname">姓名:</label>
                <input type="text" name="fname" id="general_pay_name" value="<?php echo $user_info['user_name'];?>">
                <label for="phone">手机号码:</label>
                <input type="text" name="phone" id="general_pay_phone" value="<?php echo $user_info['phone'];?>">
                <label for="address">送货地址:</label>
                <input type="text" name="address" id="general_pay_address" value="<?php echo $user_info['address'];?>">
                <?php 
                  /* if (null==$dorm) */
                  {
                ?>
                <label for="dorm">楼栋号:</label>
                <select id="text-basic" name="dorm" size="1">
                    <option value="0">其它</option>
                    <?php
                        for ($x=1; $x<$this->config->item('dorm_max')+1; $x++){
                            if ($x==$dorm)
                                echo '<option value="' . $x . '" selected>' . '宿舍' . $x . '号楼' . '</option>';
                            else echo '<option value="' . $x . '">' . '宿舍' . $x . '号楼' . '</option>';
                        }
                    ?>
                </select>
                <?php } ?>

                <label for="note">备注:</label>
                <input type="text" name="note" id="note">
                <input type="hidden" name="billjson" id="gen_billjson">
                <input type="submit" data-theme="b" id="gen_billsubmit" value="提交预定"/>
               <!-- <a href=<?php echo site_url("welcome/shop") ;?> class="ui-btn ui-btn-a">修改账单</a> -->

              </div>
              
            </form>

        </div>   
    </div>
</body> 
</html>

